package com.fantabest.frontend.client;

import com.extjs.gxt.ui.client.mvc.Dispatcher;
import com.fantabest.common.client.AppEvents;
import com.fantabest.frontend.client.mvc.AppController;
import com.google.gwt.core.client.EntryPoint;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class FantaBest implements EntryPoint {
	

	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {
//		Aggiungo i controller al dispatcher
	    Dispatcher dispatcher = Dispatcher.get();
	    dispatcher.addController(new AppController());
	    
	    dispatcher.dispatch(AppEvents.Init);
		
	}
}
